home *** CD-ROM | disk | FTP | other *** search
- G.SetGroup( "Cam" )
- local Cam = G.Create( "Data/BasicCamera.xml");
- local pos = Vector3(50,60,50);
- Cam.SetPosition( pos );
- G.File( "Data/Terra.xml");
-
-
- function DooDad()
- if( G.KeyTriggered( "F" ) ) then
- local d = G.Create( "Data/LargePineTree.xml" );
- local mpos = G.GetTerrainIntersection();
- d.SetPosition( mpos );
- end
- end
-
-
-
-
-
-
- GMain[ "DooDad" ] = DooDad;
-
- function ScreenCapFunc()
- if( G.KeyTriggered( "C" ) ) then
- G.ScreenCap()
- end
-
- if( G.KeyTriggered( "N" ) ) then
- G.LightCycle()
- end
-
- if( G.KeyTriggered( "I" ) ) then
- G.IncreaseLight()
- end
-
-
- if( G.KeyTriggered( "K" ) ) then
- G.DecreaseLight()
- end
-
- end
-
-
- GMain["ScreenCapFunc"] = ScreenCapFunc;
-
-